package com.eva.dao.system.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * 定时任务片段
 * @author Eva.Caesar Liu
 * @date 2022/03/01 21:05
 */
@Data
@ApiModel("定时任务片段")
@TableName("`SYSTEM_JOB_SNIPPET`")
public class SystemJobSnippet {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键", example = "1")
    private Integer id;

    @ApiModelProperty(value = "定时任务ID", example = "1")
    private Integer jobId;

    @ApiModelProperty(value = "JOB名称")
    private String jobName;

    @ApiModelProperty(value = "分发组")
    private String jobDistributeGroup;

    @ApiModelProperty(value = "任务执行业务时间")
    private Date jobBusinessTime;

    @ApiModelProperty(value = "分片处理器类")
    private String handler;

    @ApiModelProperty(value = "数据分发处理器")
    private String distributeHandler;

    @ApiModelProperty(value = "分发数限制", example = "1")
    private Integer distributeLimit;

    @ApiModelProperty(value = "分片索引")
    private Integer snippetIndex;

    @ApiModelProperty(value = "分片编号")
    private String snippetCode;

    @ApiModelProperty(value = "分片数据")
    private String snippetData;

    @ApiModelProperty(value = "分片数据数量", example = "1")
    private Integer snippetDataSize;

    @ApiModelProperty(value = "是否记录日志")
    private Boolean withLog;

    @ApiModelProperty(value = "分片状态（0准备，1运行中，2已完成）", example = "1")
    private Byte status;

    @ApiModelProperty(value = "锁编号", example = "1")
    private Integer lockNumber;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
